export const pageTo = (path) => {
	uni.navigateTo({
		url: path
	})
}

console.log("imported '/utils/main.js'")


export const pageBack = () => {
	uni.navigateBack()
}

export const listCopy = (toList, copiedList) => {
	toList.length = 0
	toList.push(...copiedList)
}

export const page_back = () => {
	uni.navigateBack()
}

export const toast = (_title) => {
	uni.showToast({
		title: _title,
		icon: 'none'
	})
}

export const showLoading = (_title="正在加载中") => {
	uni.showLoading({
		title: _title
	})
}

export const hideLoading = () => {
	uni.hideLoading()
}